package com.zmht.beike.biz.impl;

import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.zmht.beike.biz.StudentBiz;
import com.zmht.beike.core.BaseBizImpl;
import com.zmht.beike.dao.impl.StudentDAOImpl;
import com.zmht.beike.po.StudentTwo;

public class StudentBizImpl extends BaseBizImpl implements StudentBiz {
	
	
	
	
	public static void main(String [] args){
		ApplicationContext cxt;
		cxt = new ClassPathXmlApplicationContext(new String[]{"spring/spring.xml","spring/spring_dao.xml","spring/spring_beike.xml",});
	
		StudentDAOImpl dao  = (StudentDAOImpl)cxt.getBean("studentDAO");
		
		List<StudentTwo> list = dao.findByHQLObj("from StudentTwo");
		for(StudentTwo st:list){
//			st.setSumCognition("0.00");
//			st.setSumHabit("0.00");
//			st.setSumHealth("0.00");
//			st.setSumLanguage("0.00");
//			st.setSumSociality("0.00");
//			dao.updateObj(st);
			System.out.println("name========"+st.getSname());
			
		}
		
	}
}
